<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<base href="<%=basePath%>">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=IE8" > 
<link rel="stylesheet" href="admin/css/common.css" type="text/css" />
<link rel="stylesheet" href="./kindeditor/themes/default/default.css" />
<link rel="stylesheet" href="./kindeditor/plugins/code/prettify.css" />
<script charset="utf-8" src="./kindeditor/kindeditor.js"></script>
<script charset="utf-8" src="./kindeditor/lang/zh_CN.js"></script>
<script charset="utf-8" src="./kindeditor/plugins/code/prettify.js"></script>
<title>添加石材</title>
<script type="text/javascript" src="admin/js/jquery.js"></script>
	<script type="text/javascript">
		KindEditor.ready(function(K) {
			var editor1 = K.create('textarea[name="description"]', {
				cssPath : 'kindeditor/plugins/code/prettify.css',
				uploadJson : 'kindeditor/jsp/upload_json.jsp',
				fileManagerJson : 'kindeditor/jsp/file_manager_json.jsp',
				allowFileManager : true,
				afterCreate : function() {
					var self = this;
					K.ctrl(document, 13, function() {
						self.sync();
						document.forms['providerForm'].submit();
					});
					K.ctrl(self.edit.doc, 13, function() {
						self.sync();
						document.forms['providerForm'].submit();
					});
				}
			});
			prettyPrint();
		});
		
	</script>
<style>

	.tip{
	margin-left:10px;
	font-size: 9pt;
	color: red;	
}
input{height:20px;line-height:20px;background:#FFF;padding:2px 5px 2px 5px;margin:0;border:1px solid #CCCCCC}
select{width:120px;height:24px;line-height:24px;}

.box{width:99%;margin-bottom:50px;}
.box .hd{height:30px;line-height:30px;margin:0px 10px 0px 10px;padding-left:30px;color:#333333;font-weight:bold;font-size:14px;border-bottom:1px solid #CCCCCC;background:#EAEAEA;margin-bottom:-1px}
.box .bd{margin:10px;padding:10px;margin-top:0px;border:1px solid #CCCCCC;}
.box .bd form{margin:auto;}
</style>	
	
</head>

<body>
<div id="man_zone">
  
 <div class="box">
	<div class="hd">修改石材描述————${stone.chineseName }</div>
	<div class="bd">
	  <form action="admin/modifyStoneDesc.action" name="providerForm" method="post">
	  <table width="750">
		    <tr>
		    	<td class="left_title_2" >
		      	<span>
							&nbsp;&nbsp;石材的概要介绍<br />
				</span>	  
		      	</td>
		    	<td>
		    		<textarea name="shortDesc" style="width:500px;height:100px;" col="2" row="2">${stone.shortDesc }</textarea>
		    	</td>
		    </tr>
		     <tr>
		      	<td class="left_title_2" >
		      	<span>
							&nbsp;&nbsp;石材的详细介绍<br />
				</span>	  
		      	</td>
		    </tr>
		    <tr>
		      	<td colspan="2">
		      		<textarea id="description" name="description" style="width:99%;height:500px;visibility:hidden;">${stone.description}</textarea>
		      	</td>
		    </tr>
		    <tr>
		    	<td colspan="2"  class="left_title_2">
					<input type="submit" class="input-submit" value="保存，完成"/><a href="admin/toStoneList.action">跳过,完成</a>
				</td>
		    </tr>
		    </table>
		    <input name="stoneId" id="stoneId" type="hidden" value="${stone.id }"/>
		    <input name="stone.id" id="stone.id" type="hidden" value="${stone.id }"/>
	  		</form>
		  
	<div style="clear:both"></div>
  </div>
</div>
 
</div>
</body>
</html>
